<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="fragments/layout(title='房间管理-列表',jsPaths='/static/js/baseinfo/room/list.js')">
    <div class="right" th:fragment="right">
                <!--面包屑-->
                <div class="breadcrumb layui-bg-gray">
                    <span class="layui-breadcrumb" lay-separator=">">
                        <a th:href="@{/}">首页</a>
                         <a href="/organization">系统管理</a>
                        <a href="/room">房间管理</a>
                        <a><cite>列表</cite></a>
                    </span>
                </div>

                <!--主体内容区-->
                <div class="page-content">
                    <input type="text" id="usertype" th:value="${userType}"  hidden>
                    <div class="search-box layui-input-inline" style="height: 53px;">
                    <a href="/room/add"  class="layui-btn layui-btn-normal" auth="baseinfo-room-add">新增</a>
                    </div>
                    <div class="search-box layui-input-inline">
                        <form id="search-form" class="layui-form" >
                            <div class="layui-form-item">
                                <label class="layui-form-label ">所属楼宇</label>
                                <div class="layui-input-inline">
                                    <select name="buildingId" readonly lay-filter="buildingNo">
                                        <option value="">请选择楼宇</option>
                                        <option th:each="b:${buildings}" th:attr="id=${b.id}" th:value="${b.id}" th:text="${b.name}"></option>
                                    </select>
                                </div>
                                <label class="layui-form-label ">所属楼层</label>
                                <div class="layui-input-inline">
                                    <select name="floor" readonly id="floorNo">
                                        <option value="">请选择楼层</option>
                                    </select>
                                </div>
                                <button class="layui-btn layui-btn-normal" type="button" id="search">查询</button>
                            </div>
                        </form>
                    </div>
                    <table id="demo" lay-filter="test"></table>
                </div>
                <script type="text/html" id="toolbar">
                    <a href="javascript:void(0)" class="layui-btn layui-btn-warm layui-btn-xs" lay-event="edit" auth="baseinfo-room-edit">编辑</a>
                    <a href="javascript:void(0)" class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete" auth="baseinfo-room-delete">删除</a>
                    <a href="javascript:void(0)" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="bed" >床位生成</a>
                </script>
            </div>
</html>
